﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ContentPlaceHolderID="HeadContent" runat="server">
    <script src="<%= Links.Content.openid_selector.js.openid_jquery_js %>" type="text/javascript"></script>
    <link rel="Stylesheet" href="<%= Links.Content.openid_selector.css.openid_css %>" />
    <script language="javascript" type="text/javascript">
        $().ready(function () {
            openid.init('openid_identifier');
            $("#openid_identifier").focus();
        });
    </script>
</asp:Content>
<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    <%= ViewStrings.LogOnStrings.Logon %>
</asp:Content>
<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <div class="text1">
        <h2>
            <%= ViewStrings.LogOnStrings.Logon %></h2>
<%--        <p>
            <%= string.Format(Html.Encode(ViewStrings.LogOnStrings.GreetingMsg), 
       Html.ActionLink(ViewStrings.LogOnStrings.Register, 
        MVC.Account.Register(Request.Params["ReturnUrl"] as string)))
            %>
        </p>
        <p>
            <% if (!string.IsNullOrEmpty(Session["ErrorMessage"] as string))
               {%>
            <b>
                <%= Html.Encode(ViewStrings.LogOnStrings.LogonError) %></b>:
            <%= Html.Encode(Session["ErrorMessage"])
            %>
            <% } %>
        </p>
        <form method="post" class="sob">
        <p>
            <label for="username">
                <%= ViewStrings.LogOnStrings.Username %>:
            </label>
            <%= Html.TextBox("username", null, new { size="25", maxlength="100" })%>
            <%= Html.ValidationMessage("username") %>
        </p>
        <p>
            <label for="password">
                <%= ViewStrings.LogOnStrings.Password %>:</label>
            <%= Html.Password("password", null, new { size = "25", maxlength = "100" })%>
            <%= Html.ValidationMessage("password") %>
        </p>
        <p>
            <%= Html.CheckBox("rememberMe") %> <%= ViewStrings.LogOnStrings.RememberMe + "?" %>
        </p>
        <p>
            <%= String.Format("<input type=\"submit\" value=\"{0}\" />", ViewStrings.LogOnStrings.Login)%>
        </p>
        </form>--%>
<%--        <p>
            <%= ViewStrings.LogOnStrings.OpenIdGreetingMsg %>:</p>--%>
        <% using (Html.BeginForm(MVC.Account.OpenIdAuthenticate(Request.Params["ReturnUrl"] as string), FormMethod.Post, new { id = "openid_form" }))
       { %>
        <!-- Simple OpenID Selector -->
        <div id="openid_choice" style="display: block">
            <%--<p><%= string.Format(ViewStrings.LogOnStrings.OpenIdAbout, "<a href=\"http://openid.net/what/\">OpenID</a>") %>:</p>--%>
            <div id="openid_btns">
            </div>
        </div>
        <div id="openid_input_area">
        </div>
        <div>
            <noscript>
                <p>
                    OpenID is a service that allows you to log on to many different websites using a
                    single identity. Find out <a href="http://openid.net/what/">more about OpenID</a>
                    and <a href="http://openid.net/get/">how to get an OpenID enabled account</a>.</p>
            </noscript>
        </div>
        <!-- /Simple OpenID Selector -->
        <%= Html.Hidden("openid_identifier", "", new { id = "openid_identifier" })%>
        <% } %>
    </div>
</asp:Content>
